﻿@model LeadMaster.Models.ClientUsers

<div class="spacer"></div>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>User Membership</legend>
        <div class="spacer"></div>
        <input type="button" id="btnChangeMemberList" value="Call Centres" />
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.Label("User")
        </div>
        <div class="editor-field">
            @Html.DropDownList("UserID", null, new { @class = "chzn-select", style = "width:300px;" })
            @Html.ValidationMessageFor(model => model.UserID)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.Label("Company")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CompanyID", null, new { @class = "chzn-select", style = "width:300px;" })
        </div>
        <div class="spacer"></div>
        <p>
            <input type="submit" value="Create Association" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $(".chzn-select").chosen();

        $("#btnChangeMemberList").click(function () {
            window.location.href = "@(Url.Action("CreateForCallCentre"))";
        });
    });
</script>
